package com.ews.onlineexchange.model;

import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

@Entity
public class AdditionalTradeRating extends DataEntity {

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;

	private TradeRating			tradeRating;
	private String				content;

	@OneToOne
	@NotNull
	public TradeRating getTradeRating() {
		return tradeRating;
	}

	public void setTradeRating( TradeRating tradeRating ) {
		this.tradeRating = tradeRating;
	}

	@Length( max = 2000 )
	public String getContent() {
		return content;
	}

	public void setContent( String content ) {
		this.content = content;
	}

}
